package factorymodel;

public class Test {
    public static void main(String[] args) {
        Fruit fruit1=FruitFactory.creatFruit(FruitFactory.TYPE_APPLE);
        Fruit fruit2=FruitFactory.creatFruit(FruitFactory.TYPE_GRAPE);

        fruit1.show();
        fruit2.show();

    }
}
